package com.zh.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;

import java.io.Serializable;

/**
 * Created by Administrator on 2018/4/11/011.
 */
public class Goods extends Model<Goods> {
    private static final long serialVersionUID = 1L;

    private String id;
    private String name;
    private String price;
    private String stock;

    @TableField("delete_mark")
    private String deleteMark;
    private String describe;
    private String spec;

    @TableField("create_time")
    private String createTime;
    private String owner;
    private String place;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getStock() {
        return stock;
    }

    public void setStock(String stock) {
        this.stock = stock;
    }

    public String getDeleteMark() {
        return deleteMark;
    }

    public void setDeleteMark(String deleteMark) {
        this.deleteMark = deleteMark;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", price='" + price + '\'' +
                ", stock='" + stock + '\'' +
                ", deleteMark='" + deleteMark + '\'' +
                ", describe='" + describe + '\'' +
                ", spec='" + spec + '\'' +
                ", createTime='" + createTime + '\'' +
                ", owner='" + owner + '\'' +
                ", place='" + place + '\'' +
                '}';
    }
}
